import request from '@/utils/request'

export function patientList(query) {
  return request({
    url: '/api/patient_list/read',
    method: 'get',
    params: query
  })
}

export function deletePatient(query) {
  console.log(query)
  return request({
    url: '/api/patient_list/delete',
    method: 'post',
    data: query
  })
}

export function addPatient(query) {
  return request({
    url: '/api/patient_list/add',
    method: 'post',
    data: query
  })
}

export function updatePatient(query) {
  return request({
    url: '/api/patient_list/update',
    method: 'post',
    data: query
  })
}

export function importingPatient(query) {
  return request({
    url: '/api/patient_list/importing',
    method: 'post',
    data: query
  })
}
